/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.office.applicationRepository;


import edu.office.entities.Myidea;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Named;

import java.util.List;


/**
 * @author Administrator
 */
@Named("myideaRepositoryA")
@ApplicationScoped
public class MyideaRepository extends ApplicationCommonRepository<Myidea> {


    public List<Myidea> getMyIdea4Teacher(Integer teacherId) {
        return find("TEACHERID", teacherId).list();
    }
    public List<Myidea> getMyIdea4Student(Integer studentId) {return find("STUDENTID",studentId).list();}


}
